package co.baiku.boot.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "ajavaer.aliyun.oss")
public class AliyunOssConfig {

    private String accessKeyId;
    private String accessKeySecret;
    private String endpoint;
    private String bucket;
    private String host;
    /**
     * URL访问令牌有效期,单位毫秒,默认30分钟
     */
    private Long urlTokenExpire = 30 * 60 * 1000L;

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getBucket() {
        return bucket;
    }

    public void setBucket(String bucket) {
        this.bucket = bucket;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public Long getUrlTokenExpire() {
        return urlTokenExpire;
    }

    public void setUrlTokenExpire(Long urlTokenExpire) {
        this.urlTokenExpire = urlTokenExpire;
    }

}
